<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.doone.telmarket.domain.ibator.ServiceTypeExample"%>
<%@page import="com.doone.telmarket.domain.ibator.ServiceType"%>
<%@page import="com.doone.telmarket.domain.Service"%>
<%@ taglib prefix="se" uri="/WEB-INF/serviceTypeTag.tld"%>
<%
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



<html>
<head>
	<script src="${pageContext.request.contextPath}/fckeditor/fckeditor.js"
	type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>


	<script type="text/javascript">
window.onload=function(){
	var oFCKeditor = new FCKeditor('serviceContent') ;
	oFCKeditor.BasePath = "${pageContext.request.contextPath}/fckeditor/";//
	oFCKeditor.ReplaceTextarea();

	var fom = document.getElementById("serviceDescForm");
	fom.onsubmit = function(){
		var title = document.getElementById("descTitle").value;
		var desc = FCKeditorAPI.GetInstance("content").GetXHTML(true);
		if(title==""||desc==""){
			alert("请输入完整内容");
			return false;
		}
	}
}

</script>
</head>
<body>
<div style="width: 760px;border-color: red;border: 1px solid;background-color: white;">
  <fieldset>
  	<legend>增加增值业务详细信息</legend>
  	<form action="${pageContext.request.contextPath}/admin/saveServiceDesc" method="post" id="serviceDescForm">
  	<table>
  	<tr>
  		<td>
  		　标题:　<input type="text" id="descTitle" name="descriptionName" maxlength="6">
  		</td>
  	</tr>
  		<tr>
			<td width="32%">&nbsp;&nbsp;内容：<br/>
				<textarea rows="3" cols="5" name="serviceContent" id="serviceContent"></textarea>
			</td>
		</tr>
		<TR>
		<TD colspan="2" align="center" height="50px"><input type="submit"
			value="保存" style="cursor: hand" class="button" /> <input type="button" name="Submit2"
			value="返回" style="cursor: hand" class="button" onclick="hideEdit();" />
			</TD>
	</TR>
  	</table></form>
  </fieldset>
  	
  </div>
</body>
</html>